package com.dao.supply; 

import com.model.supply.CorpModel; 
import java.sql.SQLException;
import java.util.List; 
import java.util.Map; 
import org.apache.ibatis.annotations.Param; 

public interface CorpDao  { 

	/**
	 * 新增
	 * 
	 * @author chenjun
	 * @date 2022/03/10
	 **/
	int insert(CorpModel corpModel);

	
	int deleteByCorpCode(String corpCode);
	
	List<CorpModel> selectByCorpCode(String corpCode);
	int deleteByInfId(String infId);
	
	List<CorpModel> selectByInfId(String infId);
	
	/**
	 * 刪除
	 * 
	 * @author chenjun
	 * @date 2022/03/10
	 **/
	int delete(@Param("corpCode")String corpCode,@Param("infId")String infId);

	/**
	 * 更新
	 * 
	 * @author chenjun
	 * @date 2022/03/10
	 **/
	int update(CorpModel corpModel);

	/**
	 * 查询 根据主键 id 查询
	 * 
	 * @author chenjun
	 * @date 2022/03/10
	 **/
	CorpModel load(@Param("corpCode")String corpCode,@Param("infId")String infId);


	// 列表
	List<CorpModel> selectList(Map<String, Object> map);

	// 列表总数
	int selectListCount(Map<String, Object> map);
 }